//  const fs = require('fs').promises;

//  async function readFileContent(filePath) {
//      try {
//          const content = await fs.readFile(filePath, 'utf-8');
//          return content;
//      } catch (err) {
//          console.error(`Error reading file: ${err.message}`);
//      }
//  }

//  const qusetionRes = () => {
//      // let qusetion;
//      (async() => {
//          const content = await readFileContent('./dataIn/Question.txt');
//          console.log("content:", content);
//          return content
//              // console.log(qusetion)

//      })();
//      // return qusetion
//  }

//  // qusetion()

//  module.exports = {
//      //   qusetion1,
//      qusetionRes
//  }

const fs = require('fs').promises;

async function readFileContent(filePath) {
  try {
    const content = await fs.readFile(filePath, 'utf-8');
    return content;
  } catch (err) {
    console.error(`Error reading file: ${err.message}`);
  }
}

const qusetionRes = async () => {
  try {
    const content = await readFileContent('./dataIn/Question.txt');
    // console.log("content:", content);
    return content;
  } catch (err) {
    console.error(`Error in qusetionRes: ${err.message}`);
  }
};

module.exports = {
  qusetionRes,
};
